﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kokomo.IO
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property, AllowMultiple = true)]
	public class SerializerSwitchAttribute:Attribute
	{
		public Type SerializeType { get; private set; }
		public string PropertyName { get; private set; }
		public object Value { get; private set; }

		public SerializerSwitchAttribute(Type serializeType, string propertyName, object value)
		{
			ArgumentValidation.CheckNullArgument("serializeType", serializeType);
			this.SerializeType = serializeType;
			this.PropertyName = propertyName;
			this.Value = value;
		}
	}
}
